Optimal. Leaf size=27 \[ -\frac {\tanh ^{-1}\left (\sqrt {1+a^2+2 a b x+b^2 x^2}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {702, 214}
\begin {gather*} -\frac {\tanh ^{-1}\left (\sqrt {a^2+2 a b x+b^2 x^2+1}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 702
Rubi steps
\begin {align*} \int \frac {1}{(a+b x) \sqrt {1+a^2+2 a b x+b^2 x^2}} \, dx &=\left (4 b^2\right ) \text {Subst}\left (\int \frac {1}{4 a^2 b^3-4 \left (1+a^2\right ) b^3+4 b^3 x^2} \, dx,x,\sqrt {1+a^2+2 a b x+b^2 x^2}\right )\\ &=-\frac {\tanh ^{-1}\left (\sqrt {1+a^2+2 a b x+b^2 x^2}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(103\) vs. \(2(27)=54\).
time = 0.34, size = 103, normalized size = 3.81 \begin {gather*} \frac {\left (b+\sqrt {b^2}\right ) \tanh ^{-1}\left (a+\sqrt {b^2} x-\sqrt {1+a^2+2 a b x+b^2 x^2}\right )+\left (b-\sqrt {b^2}\right ) \tanh ^{-1}\left (a-\sqrt {b^2} x+\sqrt {1+a^2+2 a b x+b^2 x^2}\right )}{b \sqrt {b^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.75, size = 24, normalized size = 0.89
method | result | size |
default | \(-\frac {\arctanh \left (\frac {1}{\sqrt {b^{2} \left (x +\frac {a}{b}\right )^{2}+1}}\right )}{b}\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 14, normalized size = 0.52 \begin {gather*} -\frac {\operatorname {arsinh}\left (\frac {1}{{\left | b x + a \right |}}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 66 vs.
\(2 (25) = 50\).
time = 3.31, size = 66, normalized size = 2.44 \begin {gather*} -\frac {\log \left (-b x - a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} + 1\right ) - \log \left (-b x - a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} - 1\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + b x\right ) \sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 89 vs.
\(2 (25) = 50\).
time = 1.92, size = 89, normalized size = 3.30 \begin {gather*} \frac {\log \left (\frac {{\left | -2 \, {\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right )} b - 2 \, a {\left | b \right |} - 2 \, {\left | b \right |} \right |}}{{\left | -2 \, {\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right )} b - 2 \, a {\left | b \right |} + 2 \, {\left | b \right |} \right |}}\right )}{{\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {1}{\left (a+b\,x\right )\,\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________